#include "stdafx.h"
 #include "dao/DAOFactory.h"
 #include <dao/impl/OdbcRuleDao.h>
 #include <dao/impl/OdbcMachineDao.h>
#include <dao/impl/OdbcGroupDao.h>
#include "dao/impl/OdbcProcVoDao.h"
#include "dao/impl/OdbcUserDao.h"
#include "dao/impl/OdbcFileKeyDao.h"
#include "dao/impl/OdbcServerInfo.h"

CDAOFactory::CDAOFactory()
{

}
CDAOFactory::~CDAOFactory()
{

}

CRuleDao* CDAOFactory::GetRuleDao()
{


	return (CRuleDao* )new COdbcRuleDao;

}

CMachineDao*  CDAOFactory::GetMachineDao()
{

	return (CMachineDao*) new COdbcMachineDao ;

}


CGroupDao*   CDAOFactory::GetGroupDao()
{

	return (CGroupDao* )new COdbcGroupDao;
	
}

CProcVoDao*  CDAOFactory::GetProcVoDao()
{
	return (CProcVoDao*) new  COdbcProcVoDao;
}


 CUserDao*    CDAOFactory::GetUserDao()
 {
	 return (CUserDao*) new  COdbcUserDao;
 }


CFileKeyDao* CDAOFactory::GetFileKeyDao()
{
	return (CFileKeyDao*) new COdbcFileKeyDao;
	
}

CServerInfoDao* CDAOFactory::GetServerInfoDao()
{

	return (CServerInfoDao*) new COdbcServerInfoDao;

}